
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">

/*
	function kkk(){
		var typeid = $("#districtid").val();
		alert(typeid);
		document.forms[0].action = "__URL__/saveProduct/typeid/" + typeid ;
        document.forms[0].submit();
	}*/
	$(document).ready(function(){
		  // 在这里写你的代码...
		if ({$productVo['name']}== null || {$productVo['name']}==''){
			jQuery('#imgDetail').hide();
		}   
		  
	});
	

</script>



<div class="pageHeader" >

	<div class="pageFormContent" defH="60">
		<form method="post" action="__URL__/saveProduct/id/{$productVo['id']}"  class="pageForm required-validate" onsubmit="return local_validateCallback(this)" enctype="multipart/form-data">
			<p><label>产品名称：</label> 
			
			<input name="name" type="text" size="20" maxlength="20" class="required" value="{$productVo['name']}"/>
			<select class="combox" name="productColor" >
						<empty name="productVo['id']">
								<volist name="productColorList" id="newscatalogvo">
									<option value="{$newscatalogvo['id']}" >{$newscatalogvo['name']}</option>
								</volist>					
							<else />
								<volist name="productColorList" id="newscatalogvo">
									<if condition="$productVo['pro_color_id'] eq $newscatalogvo['id']">
										<option value="{$newscatalogvo['id']}" selected="selected">{$newscatalogvo['name']}</option>
										<else />
										<option value="{$newscatalogvo['id']}">{$newscatalogvo['name']}</option>
									</if>
								</volist>	
						</empty>		
			</select>
			
			</p>
			
			<p><label><font></font> 产品分类：</label> 	
							<input id="districtid" name="district_id"  type="hidden" value="{$productVo['pro_catalog_id']}"/>
							<input class="required" name="district_districtName" size="30" value="{$productVo['pro_catalog_name']}" type="text" readonly/>
							<a class="btnLook" href="__URL__/catalogtree" lookupGroup="district">查找带回</a>	
			</p>
			
			
			
			<p><label>本站产品价格（元）：</label> 
				<input name="local_price" type="text" size="30" value="{$productVo['local_price']}" class="required"/>
			</p>
			<p><label>市场产品价格（元）：</label> 
				<input name="market_price" type="text" size="30" value="{$productVo['market_price']}" class="required"/>
			</p>
			<p><label>产品库存量（件）：</label> <input name="quantity" value="{$productVo['quantity']}" type="text" size="30"  class="required"/></p>
			
			
			
			<p><label>产品单位方式：</label>
				<select class="combox" name="productUnit" >
						<empty name="productVo['id']">
								<volist name="productUnitList" id="newscatalogvo">
									<option value="{$newscatalogvo['id']}" >{$newscatalogvo['name']}</option>
								</volist>					
							<else />
								<volist name="productUnitList" id="newscatalogvo">
									<if condition="$productVo['pro_unit_id'] eq $newscatalogvo['id']">
										<option value="{$newscatalogvo['id']}" selected="selected">{$newscatalogvo['name']}</option>
										<else />
										<option value="{$newscatalogvo['id']}">{$newscatalogvo['name']}</option>
									</if>
								</volist>	
						</empty>		
				</select>
			</p>
			
			<p><label>产品支付方式：</label>
				
				 
				<input name="pro_payment_id" type="text" size="30" value="{$productVo['pro_payment_id']}" class="required"/>
				 
			</p>
			
			<p><label>发货说明：</label> 
			<input name="shippinginstructions" type="text" size="30" value="{$productVo['shippinginstructions']}"  class="required"/>
			
			</p>
			
			<p><label>产地：</label> 
			<input name="location" type="text" value="{$productVo['location']}" size="30" />
			</p>
			<p><label>产品图片上传：</label> 
			<!-- 
				<input id="imageurl" name="imageurl"
					type="text" value="{$vo['imageurl']}" size="14" class="required"/>
					 --> 
					<input name="image" id="image" type="file" class="file huge" />
					
			</p>
			
				<p>
					<label>是否推荐产品：</label>
					
					
					<select name="recommend">
						<if condition=" $productVo['recommend'] eq '1'">
								<option value="1">是</option>
								<option value="0">否</option>
							<else/>
								<option value="0">否</option>
								<option value="1">是</option>
						</if>	
					</select>
				</p>				
						<empty name="productVo['id']">
							
							<else />
							
								<label>产品图片明细：</label> 
								<div id="imgDetail">
									<img src="__PUBLIC__/uploadfiles/files/common/{$productVo['imageurl_small']}">
								</div>	
						</empty>

			
			<dl class="nowrap">		
				<p><label>产品明细说明：</label>
				<div>
					<textarea class="editor" name="information" rows="22" cols="145"														
											upLinkUrl="__PUBLIC__/uploadfiles/upload.php" upLinkExt="zip,rar,txt" 
											upImgUrl="__PUBLIC__/uploadfiles/upload.php" upImgExt="jpg,jpeg,gif,png" 
											upFlashUrl="__PUBLIC__/uploadfiles/upload.php" upFlashExt="swf"
											upMediaUrl="__PUBLIC__/uploadfiles/upload.php" upMediaExt:"avi">
											{$productVo['information']}
															
					</textarea>
				</div>			
				<div class="formBar">
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >提交</button></div></div></li>
						<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
					</ul>
				</div>
			</dl>
		</form>
	</div>
</div>






